package com.chaoxing.util;


//分页查询工具
public class PageUtil {
    public static final int PAGE_SIZE = 10;

    private PageUtil() {
    }

    public static int pageNoToIndex(int pageNo) {
        if (pageNo == 0){
            pageNo = 1;
        }
        return (pageNo - 1) * PAGE_SIZE;
    }
}
